package com.atguigui.leetcode1;

import java.util.Arrays;

/**
 * 9717.满足目标工作时长的员工数目
 * Project: leetcode
 * Package: com.atguigui.leetcode1
 * Version: 1.0
 * <p>
 * Created by WJX on 2023/7/31 9:40
 */
public class P6917NumberOfEmployeesWhoMetTheTarget {


    class Solution {
        public int numberOfEmployeesWhoMetTarget(int[] hours, int target) {
            return (int) Arrays.stream(hours).filter(x -> x >= target).count();
        }
    }
}
